package com.yu.subject.infra.basic.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yu.subject.infra.basic.entity.SubjectCategory;
import com.yu.subject.infra.basic.mapper.SubjectCategoryDao;
import com.yu.subject.infra.basic.service.SubjectCategoryService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * @author 路亚
 * @version 0.1
 * @className SubjectCategoryServiceImpl
 * @description
 * @date 2024/12/18 22:47
 * @since jdk11
 */
@Service
@RequiredArgsConstructor
public class SubjectCategoryServiceImpl extends ServiceImpl<SubjectCategoryDao, SubjectCategory> implements SubjectCategoryService {

    private final SubjectCategoryDao subjectCategoryDao;

    @Override
    public void deleteById(Long id) {
        subjectCategoryDao.deleteByCategoryId(id);
    }
}
